<?php
set_time_limit(0);
$basePath = realpath(dirname(__file__) . '/../');
require_once ($basePath . "/inc/helper_functions.php");
require_once ($basePath . "/inc/database_functions.php");
require_once ($basePath . "/inc/html_generators.php");
require_once ($basePath . "/inc/log_file_handling.php");
  
?>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<script src="js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<script src="js/json/json2.js" type="text/javascript"></script>
<script src="js/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
    function ofc_ready() {
    };
    
    function findSWF(movieName) {
    	if (navigator.appName.indexOf("Microsoft")!= -1) {
    		return window[movieName];
    	} else {
    		return document[movieName];
    	}
    }
</script>
    
<div>
    <a href="index.php">Back</a>
</div>

<?php
    generate_from_to_textboxes();
    
    connectToDatabase(); 

    $result = getMostActiveUsers();
    genControlUserStat("users.png");
    genControlUserTransferredDataStat("users2.png");
    genControlUserGantt();
    genControlUserSessionGantt();
    mysql_free_result($result);
    
    closeDatabaseConnection();
?>